﻿using Microsoft.EntityFrameworkCore;
using S.Authorization.Domain.Model.Authority;
using S.Authorization.Domain.Model.Organization;
using S.Authorization.Domain.Model.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S.Authorization.Domain.SqlServer
{
    public class SqlDbContext:DbContext
    {
        public SqlDbContext(DbContextOptions<SqlDbContext> options) : base(options)
        {
        }
        #region 用户
        public DbSet<UsersModel> UsersModel { get; set; }
        #endregion
        #region 组织
        public DbSet<BusinessModel> BusinessModel { get; set; }
        public DbSet<ColumnManagementModel> ColumnManagementModel { get; set; }
        public DbSet<DepartmentModel> DepartmentModel { get; set; }
        public DbSet<FieldModel> FieldModel { get; set; }
        public DbSet<IndustryModel> IndustryModel { get; set; }
        public DbSet<SheepFarmsModel> SheepFarmsModel { get; set; }
        #endregion
        #region 授权
        public DbSet<FeatureMenuRole> FeatureMenuRole { get; set; }
        public DbSet<FunctionOperation> FunctionOperation { get; set; }
        public DbSet<MenuList> MenuList { get; set; }
        public DbSet<Operation> Operation { get; set; }
        public DbSet<RoleMenuList> RoleMenuList { get; set; }
        public DbSet<RoleModel> RoleModel { get; set; }
        public DbSet<UserRole> UserRole { get; set; }
        public DbSet<MenuListCount> MenuListCount { get; set; }
        #endregion
    }
}
